package com.luo.pojo.comment.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class CommentVO implements Serializable {

    private String id;


    private Integer userId;


    private String nickname;


    private Integer questionId;


    private String questionTitle;


    private String parentCommentId;


    private Integer parentCommentUserId;



    private String replyCommentId;

    /**
     * 被回复的评论用户昵称
     */

    private String replyCommentUserNickname;

    /**
     * 评论等级[ 1 一级评论 默认 ，2 二级评论]
     */
    private Integer commentLevel;

    /**
     * 评论的内容
     */
    private String content;

    private Integer status;

    /**
     * 状态 0-》未删除，1-》已删除
     */
    private Integer deleteStatus;

    /**
     * 点赞数
     */
    private Integer thumb;

    private Integer commentViews;


    /**
     * 创建时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime gmtCreate;

    private boolean inputShow;
    private List<CommentVO> children;

    private String avatar;


}
